<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018-9-27
 * Time: 22:52
 */


if (!isset($_GET['id'])){
    die("缺少关键参数ID");
}
$id = $_GET["id"];
//1.连接数据库
try{
    $pdo =  new PDO("mysql:host=127.0.0.1;dbname=bk_ui","root","");
}catch (PDOException $e){
    echo "连接失败";
    var_dump($e);
}

//2.组合SQL  查询
$delSQL = " SELECT * FROM `bk_user` WHERE id=$id;";
var_dump($delSQL);